package com.liyunc.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.liyunc.demo.pojo.UserInfo;
import org.springframework.stereotype.Repository;

import java.util.List;

//注意使用mybatis别忘记mapper层继承BaseMapper<POJO对象>
@Repository
public interface UserInfoMapper extends BaseMapper<UserInfo> {

    UserInfo getUserById(int id);

    UserInfo getUser(UserInfo userInfo);

    int save(UserInfo userInfo);

    UserInfo getUserByUsername(String username);

    List<UserInfo> findAll();

}
